package com.mtt.erp.logistics.service;

import com.mtt.erp.common.exception.MttErpException;
import com.mtt.erp.logistics.domain.OrderFaceTemplete;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mtt.erp.logistics.dto.OrderFaceTempSaveDto;

import javax.validation.Valid;

/**
 * @author MrBird
 */
public interface IOrderFaceTempleteService extends IService<OrderFaceTemplete> {

    Boolean saveOrderFaceTemplete(@Valid OrderFaceTempSaveDto orderFaceTempSaveDto) throws MttErpException;

    /**
     * 按orderCode查询电子面单模板
     * @param orderCode
     * @return
     */
    OrderFaceTemplete findByOrderCode(String orderCode);
}
